﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using BitworkStudios.Wizard;
using BitworkStudios.Wizard.Forms;

namespace Forms.Demo.Controls.Wizard
{
    public partial class Page2 : UserControl, IWizardPage
    {
        public Page2()
        {
            InitializeComponent();
        }

        #region IWizardPage Members

        public UserControl Content
        {
            get { return this; }
        }

        public IWizardModel Model { get; set; }

        public new void Load()
        {
            textBox1.Text = ((WizardModel)Model).Step2Message;
        }

        public void Save()
        {
            ((WizardModel)Model).Step2Message = textBox1.Text;
        }

        public void Cancel()
        {
            throw new NotImplementedException();
        }

        public bool IsBusy
        {
            get { throw new NotImplementedException(); }
        }

        public bool PageValid
        {
            get { return true; }
        }

        public string ValidationMessage
        {
            get { throw new NotImplementedException(); }
        }

        #endregion
    }
}
